<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <button @click="number++">为猪猪侠加油</button>
        <button @click="number--">鄙视猪猪侠</button>
        <div v-if="number==1">
            我是菜鸟猪猪侠
        </div>
        <div v-else-if="number==2">
        猪猪侠学会了降龙十八掌
       </div>
        <div v-else>
        猪猪侠打败史泰龙
        </div>
    </div>
</body>

<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    new Vue({
        el: "#app",
        data() {
            return {
                number: 1
            }
        },
    })
</script>
</html>